#ifndef _USER_TIMER_H
#define _USER_TIMER_H

#include "mcc_generated_files/mcc.h"

#define SysTimerNum 2
enum
{
    SysTimer_Power,
    SysTimer_Uart
}SysTimerNo;

typedef struct
{
    bool TimerEnable;
    unsigned int TimerSetMs;
    unsigned int TimerNowMs;
    bool TimerOccur;
}SysTimerType;

extern SysTimerType    SysTimerBuf[SysTimerNum];

void SysTimer_Init(void);
void SysTimer_Cyc();
void SysTimer_Set(SysTimerType *p_sys_timer,unsigned int SetMs);
void SysTimer_Enable(SysTimerType *p_sys_timer,bool state);

#endif